﻿<!doctype html>
<html lang="en">
<script type="text/javascript">
if([[${flag}]]==null){
    alert("您还未登陆！");
    window.location.href="/login.html"
}
</script>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ZhuaBa - Welcome</title>

    <!-- begin::global styles -->
    <link rel="stylesheet" href="../static/assets/vendors/bundle.css" type="text/css">
    <!-- end::global styles -->

    <!-- begin::datepicker -->
    <link rel="stylesheet" href="../static/assets/vendors/datepicker/daterangepicker.css">
    <!-- begin::datepicker -->

    <!-- begin::vmap -->
    <link rel="stylesheet" href="../static/assets/vendors/vmap/jqvmap.min.css">
    <!-- begin::vmap -->

    <!-- begin::custom styles -->
    <link rel="stylesheet" href="../static/assets/css/app.css" type="text/css">
    <link rel="stylesheet" href="../static/assets/css/custom.css" type="text/css">
    <!-- end::custom styles -->
    <style type ="text/css">
        #events {
            padding: 45px 0 40px 130px;
            background: #fff
        }

        #events .title {
            padding-left: 45px;
            width: 320px;
            height: 45px;
            line-height: 45px;
            font-size: 20px;
            color: #666;
            background: #f5f5f5
        }

        #events .title .date {
            color: #333;
            font-weight: 700
        }

        #events .events {
            position: relative;
            margin: 5px 0 60px 148px;
            padding-top: 40px;
            width: 550px
        }

        #events .events dd {
            position: relative;
            *zoom:1;border-left: 1px solid #e1e3e6;
            padding-bottom: 45px
        }

        #events .events dd:after {
            content: '\0020';
            display: block;
            height: 0;
            font-size: 0;
            clear: both;
            overflow: hidden;
            visibility: hidden
        }

        #events .events dd .year {
            position: absolute;
            left: -148px;
            top: 0;
            width: 120px;
            height: 25px;
            line-height: 25px;
            color: #333;
            font-size: 20px;
            text-align: right
        }

        #events .events dd .year .character {
            font-size: 16px
        }

        #events .events dd .icon {
            position: absolute;
            left: -18px;
            top: -5px;
            border: 5px solid #fff;
            width: 25px;
            height: 25px;
            border-radius: 8px;
            text-align: center;
            background: #e5e5e5
        }

        #events .events dd .icon em {
            line-height: 25px;
            font-size: 16px;
            color: #c2c2c2
        }

        #events .events dd .event {
            padding-top: 12px
        }

        #events .events dd .event .event_tit-wrapper {
            height: 25px;
            line-height: 25px;
            font-size: 16px;
            border-top: 1px solid #e1e3e6
        }

        #events .events dd .event .event_tit-wrapper .event_tit {
            position: relative;
            top: -13px;
            margin-left: 35px;
            padding-left: 5px;
            background: #fff
        }

        #events .events dd .event .event_cnt {
            margin: -6px 0 0 40px;
            font-size: 14px;
            color: #999
        }

        #events .events dd:first-child {
            margin-top: -40px;
            padding-top: 40px
        }

        #events .events dd:first-child .year {
            margin-top: 40px
        }

        #events .events dd:first-child .icon {
            margin-top: 40px
        }

        #events .events dd:last-child {
            padding-bottom: 0;
            border-color: transparent
        }
    </style>
    <script type="text/javascript">
        var days=new  Array ("日", "一", "二", "三", "四", "五", "六");
        function showDT() {
                var currentDT = new Date();
                var y,m,date,day,hs,ms,ss,theDateStr;
                y = currentDT.getFullYear(); //四位整数表示的年份
                m = currentDT.getMonth() + 1; //月
                date = currentDT.getDate(); //日
                day = currentDT.getDay(); //星期
                hs = currentDT.getHours(); //时
                ms = currentDT.getMinutes(); //分
                ss = currentDT.getSeconds(); //秒
                theDateStr = y+"年"+  m +"月"+date+"日 星期"+days[day]+" "+hs+":"+ms+":"+ss;
                document.getElementById("theClock"). innerHTML =theDateStr;
                // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
                window.setTimeout( showDT, 1000);
        }
    </script>
</head>
<body onload="showDT()">

<!-- begin::page loader-->
<div class="page-loader">
    <div class="spinner-border"></div>
    <span>Loading ...</span>
</div>
<!-- end::page loader -->

<!-- begin::side menu -->
<div class="side-menu">
    <div class='side-menu-body'>
        <ul>
            <!-- 导航栏-->
            <li class="side-menu-divider">欢迎使用</li>
            <li class="open">
                <a href="/welcome.html"><i class="icon ti-home"></i> <span>历史上的今日</span> </a>
            </li>
            <li>
                <a href="/Music.html"><i class="icon ti-paint-bucket"></i> <span>今日热门歌曲</span> </a>
            </li>

            <li><a href="/News.html"><i class="icon ti-rocket"></i> <span>今日热点新闻</span> </a>
            </li>
            <li><a href="/Video.html"><i class="icon ti-crown"></i> <span>今日热门视频</span> </a></li>
            <li><a href="/History.html"><i class="icon ti-files"></i> <span>历史记录</span> </a>
            </li>
        </ul>
    </div>
</div>
<!-- end::side menu -->

<!-- begin::navbar -->
<nav class="navbar">
    <div class="container-fluid">

        <div class="header-logo">
            <a href="#">
                <img src="../static/assets/media/image/light-logo.png" alt="...">
                <span class="logo-text d-none d-lg-block">Zhuaba</span>
            </a>
        </div>

        <div class="header-body">
            <ul></ul>
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a href="#" class="d-lg-none d-sm-block nav-link search-panel-open">
                        <i class="fa fa-search"></i>
                    </a>
                </li>

                <li class="nav-item dropdown">
                    <a href="#" data-toggle="dropdown">
                        <figure class="avatar avatar-sm avatar-state-success">
                            <img class="rounded-circle" src="../static/assets/media/image/avatar.jpg" alt="...">
                        </figure>
                    </a>
                    <div class="dropdown-menu dropdown-menu-right">
                        <div class="dropdown-divider"></div>
                        <a href="/" class="text-danger dropdown-item">登出</a>
                        <a href="Person.html" class="text-danger dropdown-item">个人信息</a>
                    </div>
                </li>
                <li class="nav-item d-lg-none d-sm-block">
                    <a href="#" class="nav-link side-menu-open">
                        <i class="ti-menu"></i>
                    </a>
                </li>
            </ul>
        </div>

    </div>
</nav>
<!-- end::navbar -->

<!-- begin::main content -->
<main class="main-content">

    <div class="container-fluid">

        <!-- begin::page header -->
        <div class="page-header d-md-flex justify-content-between align-items-center">
            <div>

                <h4>当前时间</h4>
                <h4 id="theClock"></h4>
            </div>
        </div>
        <!-- end::page header -->
    </div>
    <div id="myarea" th:text="${htmlCode}">

    </div>
    <script>
            var str = document.getElementById('myarea').innerText
            document.getElementById('myarea').innerHTML = str
    </script>
</main>
<!-- end::main content -->

<!-- begin::global scripts -->
<script src="../static/assets/vendors/bundle.js"></script>
<!-- end::global scripts -->

<!-- begin::charts -->
<script src="../static/assets/vendors/charts/chartjs/chart.min.js"></script>
<script src="../static/assets/vendors/charts/peity/jquery.peity.min.js"></script>
<script src="../static/assets/js/examples/charts/chartjs.js"></script>
<script src="../static/assets/js/examples/charts/peity.js"></script>
<!-- end::charts -->

<!-- begin::daterangepicker -->
<script src="../static/assets/vendors/datepicker/daterangepicker.js"></script>
<!-- end::daterangepicker -->

<!-- begin::dashboard -->
<script src="../static/assets/js/examples/dashboard.js"></script>
<!-- end::dashboard -->

<!-- begin::vamp -->
<script src="../static/assets/vendors/vmap/jquery.vmap.min.js"></script>
<script src="../static/assets/vendors/vmap/maps/jquery.vmap.usa.js"></script>
<script src="../static/assets/js/examples/vmap.js"></script>
<!-- end::vamp -->

<!-- begin::custom scripts -->
<script src="../static/assets/js/custom.js"></script>
<script src="../static/assets/js/app.js"></script>
<!-- end::custom scripts -->
<div style="text-align:center;">
    <p style="color: #0b0b0b">来源:<a href="https://baike.baidu.com/calendar/" target="_blank">百度百科</a></p>
</div>
</body>
</html>